import request from '@/utils/request.js'

// api地址
const api = {
  userinfo: 'user/index',
  detail: 'user/detail',
  edit: 'user/edit',
  grade: 'user/grade'
}

export function userinfo(update_time=false) {
  return request.get(api.userinfo, {update_time})
}
export function detail() {
  return request.get(api.detail)
}
export function edit(params) {
  return request.post(api.edit, params)
}
export function grade() {
  return request.get(api.grade)
}